package com.atguigu.aiproject.service;

import com.atguigu.aiproject.entity.User;
import com.atguigu.aiproject.service.impl.UserServiceImpl;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService extends IService<User> {
    UserServiceImpl.LoginResult login(String username, String password);

    String updateAvatar(MultipartFile avatar) throws IOException;

    void logout(String token);

    User getUserInfo();

    boolean deleteById(Integer id);
}
